package sun.it.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import sun.it.service.HelloService;

@Controller
@RequestMapping("/demo")
public class HelloController {
    @Reference
    private HelloService helloService;

    @RequestMapping("/hello")
    @ResponseBody
    public String sayHell(String name){
        return helloService.SayHello(name);
    }
    @RequestMapping("/hello1")
    @ResponseBody
    public String sayHell1(String name){
        return "dsa";
    }


}
